---
title: LegalManagerBase.OnRetrieve
summary: confidential-claim gate
status: draft
owner: SAIF Documentation Generator
last_reviewed: 2026-08-21
library: SAIF.Application.Claim.Legal
reference_type: embedded
operation_id: OP-002
trigger: confidential-claim gate
---

# LegalManagerBase.OnRetrieve

Confidential-claim gate.

| Field | Value |
| --- | --- |
| **Operation ID** | OP-002 |
| **Trigger** | confidential-claim gate |
| **Inputs** | Current manager state, current claim/case context, and any workflow-specific parameters or collections. |
| **Outputs** | Updated collections, messages, or side effects specific to the operation. |
| **Primary components** | `LegalManagerBase.OnRetrieve` |
| **Entry point** | `SAIF.Application.Claim.Legal\LegalManagerBase.vb` |

## Steps

1. If `IsInAdminGroup` → bypass all further checks.
2. Else if the claim `IsWorkerConflict` and `HasLegalConflictAccess` → allow.
3. Else if the claim `IsExposure` and `HasLegalExposureAccess` → allow.
4. Else if `CheckForSecurityOverride()` succeeds → allow.
5. Otherwise set `Message = ClaimAppConstants.ERRORCONFIDENTIALCLAIM` and `m_CanViewClaim = False`.

- Primary rules: [BR-001](../business-rules.md#br-001-members-of-the-legal-admin-ad-group-bypass-all-confidential-claim-restrictions), [BR-002](../business-rules.md#br-002-a-worker-conflict-claim), [BR-003](../business-rules.md#br-003-an-exposure-claim)

## Failure and edge-case behavior

- Failures surface as manager messages or blocked workflow actions specific to the source operation.

## Process flow

The following diagram visualizes this operation's control flow.

```mermaid
flowchart TD
  Start([Trigger]) --> S1[Load current state]
  S1 --> S2[Apply operation rules]
  S2 --> D{"Validation or security<br>issue?"}
  D -->|Yes| EndErr(["Return message or block<br>action"])
  D -->|No| EndOk(["Return updated workflow<br>state"])
```

## Related documentation
- [Index](../index.md)
- [Operations and processes](../operations-processes.md)
- [Business rules](../business-rules.md)
- [Security and authorization](../security-authorization.md)
- [Database tables](../database-tables.md)
- [SQL catalog](../sql/index.md)
- [Procedures](../procedures/index.md)
- [API reference](../api/index.md)

## Sources
- SAIF.Application.Claim.Legal\LegalManagerBase.vb
